<?php



class Enf_ninMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.Enf_ninMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('enf_nin');
		$tMap->setPhpName('Enf_nin');

		$tMap->setUseIdGenerator(true);

		$tMap->setPrimaryKeyMethodInfo('enf_nin_SEQ');

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignKey('NUMHISTORIA', 'Numhistoria', 'int', CreoleTypes::INTEGER, 'historia', 'NUMHISTORIA', true, null);

		$tMap->addColumn('TIP_ENF', 'TipEnf', 'string', CreoleTypes::VARCHAR, false, 30);

	} 
} 